package com.nine.mymall.product.vo;

import com.nine.mymall.product.entity.CategoryEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 2级分类VO
 * @author: duonine
 * @date: 2021/10/31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category2Vo {

    // 1级父分类
    private String catalog1Id;
    // 3级子分类
    private List<Category3Vo> catalog3List;

    private String id;
    private String name;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Category3Vo{
        // 2级分类父id
        private String catalog2Id;
        private String id;
        private String name;
    }

}
